<template>
  <BasicModal v-bind="$attrs" destroyOnClose title="权益使用记录" width="60%" :footer="null" @register="registerModal">
    <CardserverRecordIndex ref="cardserverRecordIndex"></CardserverRecordIndex>
  </BasicModal>
</template>
<script lang="ts" setup>
import { getCurrentInstance } from 'vue';
import { BasicModal, useModalInner } from '@apps/antd-admin/src/components/modal';
import CardserverRecordIndex from '../../cardserverRecord/index.vue';

const ctx: any = getCurrentInstance();
const [registerModal, { setModalProps }] = useModalInner(async (data) => {
  let record = data.record;
  ctx.refs['cardserverRecordIndex'].setSearchInfoProps(record.cardserverId);
});
</script>
